package com.sky.wsp.security;

import cn.hutool.crypto.digest.MD5;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * 启动类
 *
 * @author wangshaopeng@talkweb.com.cn
 * @Date 2023-07-11
 */
public class BCryptPasswordEncoderTest {
    private static final BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
    public static void main(String[] args) {
        String password = MD5.create().digestHex("C&vxO!StHVo#onDf");
        System.out.println(password);
        String encode = passwordEncoder.encode(password);
        System.out.println(encode);
    }
}